package cn.achao.csr.api.factory;

import cn.achao.csr.api.AuthApi;
import cn.achao.csr.api.model.dto.ZfbNotifyDTO;
import cn.achao.csr.base.resp.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Author: achao
 **/
@Slf4j
@Component
public class AuthFallbackFactory implements FallbackFactory<AuthApi> {

    @Override
    public AuthApi create(Throwable throwable) {
        return new AuthApi() {
            @Override
            public R<?> zfbNotify(ZfbNotifyDTO req) {
                return null;
            }
        };
    }
}
